/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package cliente.negocio;


import log.Log;

/**
 *
 * @author tpaxle
 */
public class Controlador_Log {
    private Log logging;
    private int n_reg= 0;
    public Controlador_Log(){
        logging= new Log();
        logging.start();
        logging.escribir(">>>>>>Log iniciado<<<<<");
    }
    public void escribir(String texto){
        logging.escribir(">#"+n_reg+"#< "+ texto);
        n_reg++;
    }
    public void cerrar(){
        logging.cerrar();
        logging.interrupt();
    }
}
